import { getData, postData } from '@/servers/http'
import type { getUserDossiersSendReq } from './interface'
// 档案列表
export const getDossiers = (data: any) => getData(`/user-dossiers`, data)

//获取关卡数据
export const getBarriers = (id: string, data?: any) => getData<any, any>(`/user-barriers/${id}`, data)

//获取用户信息
export const getUsersLoginUserInfo = () => getData<any, any>(`/users/login-user-info`)

// 发送档案到邮箱
export const getUserDossiersSend = (data: getUserDossiersSendReq) => postData(`/user-dossiers/send`, data)

//获取关卡数据
export const getUserJobRel = () => getData<any, any>(`/user-barriers/user-job-multiple-rel`)
